<template>
  <div class="user-top-container">
    <div class="user-top-card">
      <div class="card-header">
        <span class="card-title">Age bracket</span>
        <i class="el-icon-more"></i>
      </div>
      <div class="card-body">
         <component :is="'cardone'"></component>
      </div>
    </div>
    <div class="user-top-card">
      <div class="card-header">
        <span class="card-title">Age bracket</span>
        <i class="el-icon-more"></i>
      </div>
      <div class="card-body">
         <component :is="'cardtwo'"></component>
      </div>
    </div>
    <div class="user-top-card">
      <div class="card-header">
        <span class="card-title">Analyze</span>
        <i class="el-icon-more"></i>
        <component :is="'cardthree'"></component>
      </div>
    </div>
  </div>
</template>

<script>
import cardone from './cardone'
import cardtwo from './cardtwo'
import cardthree from './cardthree'
export default {
    components:{
        cardone,
        cardtwo,
        cardthree
    },
    data(){
        return{

        }
    }
}
</script>


<style lang="scss" scoped>
.user-top-container {
  display: flex;
  flex-direction: row;
  margin-top: 25px;
  .user-top-card {
    flex: 1;
    height: 350px;
    margin: 0 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(49, 49, 49, 0.1);
    .card-header {
      height: 50px;
      line-height: 50px;
      padding: 0 15px;
      position: relative;
      .card-title {
        font-size: 20px;
        font-weight: bolder;
      }
      .el-icon-more {
        position: absolute;
        right: 20px;
        top: 15px;
        font-size: 20px;
        font-weight: bold;
        color: #6fc4ff;
        cursor: pointer;
      }
    }
  }
}
</style>
